From 9cf14302f65e163197bb49c59fdb38d6fdac8f4c Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 23 Jun 2009 03:29:25 +0000 Subject: [PATCH] GDB: Allow read of BaseCamp files, too. --- gpsbabel/gdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/gdb.c b/gpsbabel/gdb.c index 129951cf6..34acd2c47 100644 --- a/gpsbabel/gdb.c +++ b/gpsbabel/gdb.c @@ -110,8 +110,8 @@ /*******************************************************************************/ -/* static char gdb_release[] = "$Revision: 1.68 $"; */ -static char gdb_release_date[] = "$Date: 2009-02-11 12:49:27 $"; +/* static char gdb_release[] = "$Revision: 1.69 $"; */ +static char gdb_release_date[] = "$Date: 2009-06-23 03:29:25 $"; static gbfile *fin, *fout, *ftmp; static int gdb_ver, gdb_category, gdb_via, gdb_roadbook; @@ -432,7 +432,7 @@ read_file_header(void) } i = FREAD_STR(buf); - is_fatal((i != 9) || (strcmp(buf, "MapSource") != 0), "Invalid header!"); + is_fatal(!(((i == 9) && (strcmp(buf, "MapSource") == 0)) || ((i == 8) && (strcmp(buf, "BaseCamp") == 0))), "Invalid header!"); } /*-----------------------------------------------------------------------------*/ -- 2.30.2